package com.zyh.testhomework;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        final double PI = 3.14;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入圆形半径");
        int r = sc.nextInt();
        double c = 2 * PI * r;//计算周长
        double s = PI * r * r;//计算面积
        System.out.println("圆的周长是:" + c + "圆的面积是:" + s);
    }
}
